import {Component, OnInit} from "@angular/core";
import {SalesTaxService} from "../../services/sales-tax.service";

@Component({
  selector: 'sales-tax',
  templateUrl: './sales-tax.component.html',
  styleUrls: ['./sales-tax.component.css']
})
export class SalesTaxComponent implements OnInit {

  constructor(private salesTaxService: SalesTaxService) {
  }

  ngOnInit() {
  }

  getTax(value: string|number) {
    return this.salesTaxService.getVAT(value)
  }

}
